<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<header th:replace="admin/header::header-fragment">
</header>
<body>
<shiro:user>
<div class="layui-form" lay-filter="layuiadmin-form-tagss" id="layuiadmin-app-form-tagss" style="padding-top: 30px; text-align: center;">
  <div class="layui-form-item">
    <label class="layui-form-label">分类名</label>
    <div class="layui-input-inline">
      <input type="text" name="tagss" lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit">百搭按钮</button>
  </div>
</div>
  </shiro:user>
<shiro:guest>
  <footer th:replace="admin/nologin::header-fragment">
  </footer>
</shiro:guest>
<script th:src="@{/layuiadmin/layui/layui.js}"></script>
  <script>
  layui.config({
    base: 'layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$ 
    ,form = layui.form ;
    //监听提交
    form.on('submit(submitForm)', function(data){
      alert(JSON.stringify(data));
    });
  })
  </script>
</body>
</html>